[Slack Alert] Tiktok Disapproved ads

This automation runs every hour and checks whether any of the ads got disapproved. If that’s the case, you will get a Slack notification with the name of the ad and the link to the Ads Manager.

With this automation, get a Slack message for any disapproved ads.

Notion image

JSON Recipe

Import the automation recipe(s) into your own account. Don’t know how? Learn here.

Tiktok Disapproved ads
{"name":"[Slack Alert] Tiktok Disapproved ads","description":"tt_disapproved_ads_slack_2023-03-15","nodes":{"tik_tok_fetch_ads_1":{"type":"tik_tok_fetch_ads","logging_enabled":false,"x":306,"y":212,"group":"group_1","inputs":{"operational_status":{"export_enabled":true,"data":"RUNNING"}}},"patch_json_list_v2_1":{"type":"patch_json_list_v2","logging_enabled":false,"x":784,"y":212,"group":"group_1","inputs":{"value":{"export_enabled":true}}},"input_any_1":{"type":"input_any","logging_enabled":false,"x":775,"y":32,"group":"group_1","inputs":{"any":{"export_enabled":true,"data":[{"op":"add","path":"/root","value":{}},{"op":"move","path":"/root/id","from":"/ad_id"},{"op":"move","path":"/root/advertiser_id","from":"/advertiser_id"},{"op":"move","path":"/root/campaign_name","from":"/campaign_name"},{"op":"move","path":"/root/ad_name","from":"/ad_name"},{"op":"move","path":"/root/create_time","from":"/create_time"},{"op":"move","path":"","from":"/root"}]}}},"slack_notifier_v2_1":{"type":"slack_notifier_v2","logging_enabled":false,"x":758,"y":209,"group":"group_2"},"start_1":{"type":"start","logging_enabled":false,"x":34,"y":190},"stop_1":{"type":"stop","logging_enabled":false,"x":2198,"y":663,"inputs":{"stop":{"export_enabled":true}}},"delay_1":{"type":"delay","logging_enabled":false,"x":41,"y":282,"inputs":{"duration":{"export_enabled":true,"data":3600}}},"slack_select_conversation_id_1":{"type":"slack_select_conversation_id","logging_enabled":false,"x":842,"y":57,"inputs":{"conversation_id":{"title":"conversation_id","description":"Select a Slack Channel or Conversation"}}},"for_each_v2_1":{"type":"for_each_v2","logging_enabled":false,"x":286,"y":212,"group":"group_2"},"patch_json_v2_1":{"type":"patch_json_v2","logging_enabled":false,"x":522,"y":210,"group":"group_2","inputs":{"patches":{"export_enabled":true,"data":[{"op":"replace","path":"/0/text/text","value":":warning: The ad {{input.value/ad_name}} is disapproved. \nCampaign Name: {{input.value/campaign_name}} \nAd created {{input.value/create_time}} "},{"op":"replace","path":"/1/elements/0/url","value":"https://ads.tiktok.com/i18n/perf/creative?aadvid={{input.value/advertiser_id}}\u0026keyword={{input.value/id}}"}]},"data":{"export_enabled":true,"data":[{"type":"section","text":{"type":"mrkdwn","text":""}},{"type":"actions","elements":[{"type":"button","text":{"type":"plain_text","text":"Open in Ads Manager"},"url":""}]}]}}},"for_each_v2_2":{"type":"for_each_v2","logging_enabled":false,"x":358,"y":279},"tik_tok_select_ad_account_ids_1":{"type":"tik_tok_select_ad_account_ids","logging_enabled":false,"x":368,"y":59,"inputs":{"ad_account_ids":{"export_enabled":true}}},"filter_v2_1":{"type":"filter_v2","logging_enabled":false,"x":544,"y":213,"group":"group_1","inputs":{"filters":{"export_enabled":true,"data":[{"operator":"=","pointer":"/status","value":"AD_STATUS_AUDIT_DENY"}]}}},"slack_notifier_v2_2":{"type":"slack_notifier_v2","logging_enabled":false,"x":54,"y":210,"group":"group_2","inputs":{"thread_ts":{"export_enabled":true}}}},"edges":["for_each_v2_1.do:patch_json_v2_1.patch","patch_json_v2_1.patched:slack_notifier_v2_1.send","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_1.conversation_id","patch_json_v2_1.data:slack_notifier_v2_1.blocks","for_each_v2_1.item:patch_json_v2_1.value","input_any_1.any:patch_json_list_v2_1.patches","tik_tok_select_ad_account_ids_1.ad_account_ids:for_each_v2_2.items","delay_1.delayed:for_each_v2_2.start","patch_json_list_v2_1.data_list:for_each_v2_1.items","for_each_v2_1.done:for_each_v2_2.next","for_each_v2_2.done:delay_1.start","filter_v2_1.filtered:patch_json_list_v2_1.patch","filter_v2_1.items:patch_json_list_v2_1.data_list","start_1.start:delay_1.start","for_each_v2_2.do:tik_tok_fetch_ads_1.fetch","for_each_v2_2.item:tik_tok_fetch_ads_1.ad_account_id","tik_tok_fetch_ads_1.fetched:filter_v2_1.filter","tik_tok_fetch_ads_1.ads:filter_v2_1.items","slack_notifier_v2_2.thread_ts:slack_notifier_v2_1.thread_ts","slack_notifier_v2_2.sent:for_each_v2_1.start","slack_notifier_v2_1.sent:for_each_v2_1.next","patch_json_list_v2_1.patched:slack_notifier_v2_2.send","slack_select_conversation_id_1.conversation_id:slack_notifier_v2_2.conversation_id"],"groups":{"group_1":{"title":"Get disapproved ads","description":"","x":598,"y":286,"inputs":["tik_tok_fetch_ads_1.fetch","tik_tok_fetch_ads_1.ad_account_id"],"outputs":["patch_json_list_v2_1.patched","patch_json_list_v2_1.data_list"]},"group_2":{"title":"Send a Slack Message \u0026 append the list of checked ads","description":"","x":842,"y":286,"inputs":["slack_notifier_v2_2.send","for_each_v2_1.items","slack_notifier_v2_1.conversation_id","slack_notifier_v2_2.conversation_id"],"outputs":["for_each_v2_1.done"]}},"widgets":{"widget_1":{"title":"Slack channel","description":"Select a Slack Channel ","position":1,"input":"slack_select_conversation_id_1.conversation_id"},"widget_2":{"title":"Ad Accounts","description":"Select one or more TikTok Ad Accounts","position":0,"input":"tik_tok_select_ad_account_ids_1.ad_account_ids"},"widget_3":{"title":"Run every","description":"The duration to delay the trigger (in Seconds)","position":2,"input":"delay_1.duration"}},"variables":{},"config":{"capture_inputs_enabled":false,"caching_enabled":false},"tags":[]}

How To

After creating the automation, make a few selections and then hit “Run Automation”. The check will happen by default every hour. If none of your ads are disapproved, you won’t get a Slack message.

💡
Per default, all active ads in an account will be checked. If you want to be more specific in the campaign, ad set, or ad selection you can add filters to the automation following this Builder tutorial.

Step 1

Select an Ad Account

Notion image

Step 2

Select a Slack Channel, in which you would like to receive the notifications

Notion image

Step 3

Define how often you want the automation to run

Notion image
Did this answer your question?
😞
😐
🤩

Last updated on March 15, 2023